#include "list.h"
#include "pkg.h"
#include "attrib.h"

#ifndef PKGDB_H
#define PKGDB_H

typedef list_p pkgdb_p;

pkgdb_p pkgdb_new();

void pkgdb_add(pkgdb_p pkgdb, pkg_p pkg);
pkg_p pkgdb_get(pkgdb_p pkgdb);
pkg_p pkgdb_remove(pkgdb_p pkgdb);

pkg_p pkgdb_find_next(pkgdb_p pkgdb, char *key, char *value);

#endif /* PKGDB_H */

